package com.neepu.serviceImpl;

import com.neepu.dao.DutresultMapper;
import com.neepu.pojo.Dutresult;
import com.neepu.pojo.Scourse;
import com.neepu.service.DutresultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("DutresultService")
public class DutresultServiceImpl implements DutresultService {

    @Autowired
    private DutresultMapper dutresultMapper;


    @Override
    public List<Dutresult> getProgrammeByStudentId(String userID) {
        return dutresultMapper.getProgrammeByStudentId(userID);
    }

    @Override
    public List<Scourse> getAllProgramme() {
        return dutresultMapper.getAllProgramme();
    }

    @Override
    public void updateDutresult(String studentID) {
        dutresultMapper.updateDutresult(studentID);
    }

    @Override
    public List<Dutresult> getProgrammeByStudentIdAndStatus(String userID, int status) {
        return dutresultMapper.getProgrammeByStudentIdAndStatus(userID,status);
    }
}
